@inherits Blazorise.BaseSelectGroup
@if ( !HasCustomRegistration )
{
    <optgroup class="@ClassMapper.Class" label="@Label">
        @ChildContent
    </optgroup>
}
else
{
    @RenderCustomComponent()
}